package com.c2soft.ncmx.exch.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

import org.joda.time.DateTime;

public class Order implements Serializable{

	private static final long serialVersionUID = 1L;

	private String type;
	
	private String orderId;
	
	private String orderStatus;

	private BigDecimal price;
	
	private BigDecimal stopLossPrice;

	private int qty;

	private DateTime dateTime;

	public Order(String type, String orderId, String orderStatus,
			BigDecimal price, BigDecimal stopLossPrice, int qty,
			DateTime dateTime) {
		super();
		this.type = type;
		this.orderId = orderId;
		this.orderStatus = orderStatus;
		this.price = price;
		this.stopLossPrice = stopLossPrice;
		this.qty = qty;
		this.dateTime = dateTime;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @return the orderId
	 */
	public String getOrderId() {
		return orderId;
	}

	/**
	 * @return the orderStatus
	 */
	public String getOrderStatus() {
		return orderStatus;
	}

	/**
	 * @return the price
	 */
	public BigDecimal getPrice() {
		return price;
	}

	/**
	 * @return the stopLossPrice
	 */
	public BigDecimal getStopLossPrice() {
		return stopLossPrice;
	}

	/**
	 * @return the qty
	 */
	public int getQty() {
		return qty;
	}

	/**
	 * @return the dateTime
	 */
	public DateTime getDateTime() {
		return dateTime;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @param orderId the orderId to set
	 */
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	/**
	 * @param orderStatus the orderStatus to set
	 */
	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	/**
	 * @param stopLossPrice the stopLossPrice to set
	 */
	public void setStopLossPrice(BigDecimal stopLossPrice) {
		this.stopLossPrice = stopLossPrice;
	}

	/**
	 * @param qty the qty to set
	 */
	public void setQty(int qty) {
		this.qty = qty;
	}

	/**
	 * @param dateTime the dateTime to set
	 */
	public void setDateTime(DateTime dateTime) {
		this.dateTime = dateTime;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Order ["
				+ (type != null ? "type=" + type + ", " : "")
				+ (orderId != null ? "orderId=" + orderId + ", " : "")
				+ (orderStatus != null ? "orderStatus=" + orderStatus + ", "
						: "")
				+ (price != null ? "price=" + price + ", " : "")
				+ (stopLossPrice != null ? "stopLossPrice=" + stopLossPrice
						+ ", " : "") + "qty=" + qty + ", "
				+ (dateTime != null ? "dateTime=" + dateTime : "") + "]";
	}
	


	
}
